package cn.tedu.tmall.admin.content.dao.persist.repository.impl;

import cn.tedu.tmall.admin.content.dao.persist.mapper.CategoryMapper;
import cn.tedu.tmall.admin.content.dao.persist.repository.ICategoryRepository;
import cn.tedu.tmall.common.pojo.po.CategoryPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public class CategoryRepository implements ICategoryRepository {
    @Autowired
    private CategoryMapper mapper;
    @Override
    public List<CategoryPO> listByParentId(Long parentId) {
        List<CategoryPO> categoryPOS = mapper.listByParentId(parentId);
        return categoryPOS;
    }
}
